package org.youchan.aco;

import java.io.IOException;
import java.text.SimpleDateFormat;
import java.util.Calendar;
import java.util.logging.FileHandler;
import java.util.logging.Level;
import java.util.logging.Logger;

import org.youchan.aco.ui.UIManager;

import com.skype.SkypeException;

public class AcoMain {
	
	private static final SimpleDateFormat DF = new SimpleDateFormat("yyyy-MM-dd");
	private static AcoMain self_;
	
	private AcoMain() {

	}
	 
	public static AcoMain getInstance() {
		if (self_ == null) {
			self_ = new AcoMain();
		}
		return self_;
	}
	
	
	public static void main(String ... args) throws SkypeException, SecurityException, IOException {
		Logger logger = Logger.getLogger("org.youchan.aco");
		logger.addHandler(new FileHandler("dsns_" + DF.format(Calendar.getInstance().getTime()) + ".log"));
		logger.setLevel(Level.ALL);

		UIManager ui = UIManager.getInstance();
		ui.start();
	}
}
